package im.zhihao.zhdisk.module.user.model.dto;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel(description = "系统用户类")
public class SystemUserDTO {

    @ApiModelProperty(value = "ID, 新增无需填写", example = "1")
    @JsonIgnore
    private Integer id;


    @ApiModelProperty(value = "用户名", required = true, example = "admin")
    private String username;


    @ApiModelProperty(value = "昵称", required = true, example = "超级管理员")
    private String nickname;

    @ApiModelProperty(value = "密码", required = true, example = "admin123")
    private String password;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
